package com.sure.supermarketserver.sell.adjust.dao;

import com.sure.supermarketserver.sell.adjust.CargoDto;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface CargoDao {

    @Select("SELECT * FROM `cargo` t1 left join type t2 on t1 .ty_id = t2.ty_id")
    List<CargoDto> cargoPage(CargoDto dto);

    @Update("update cargo set ca_name=#{ca_name},im_unit=#{im_unit},ca_date=#{ca_date},ca_price=#{ca_price} where ca_id=#{ca_id}")
    void updateCargo(CargoDto dto);
}
